import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false
import purple from "./assets/dark.json";

import { SVGRenderer, CanvasRenderer } from 'echarts/renderers';
echarts.use([SVGRenderer, CanvasRenderer]);

import * as echarts from 'echarts';
echarts.registerTheme('purple', purple);
var myChart=function(el){
  return echarts.init(document.getElementById(el),'purple',{ renderer: 'svg' })
}
Vue.prototype.$myChart=myChart

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
